package com.gdpu.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author:weiming
 * @Date:2021/6/13
 */
@Component
@PropertySource(value = {"classpath:jwtConfig.properties"})
public class JwtConfig {

    @Value("${tokenHeader}")
    public String tokenHeader;
    @Value("${secret}")
    public String secret ;
    public Long expiration = 604800L;
    @Value("${tokenHead}")
    public String tokenHead;

}
